﻿using PetAdoptionShared.Dto;

namespace PetAdoptApi.Extensions;

public static class HttpContextExtension
{
    public static Task WriteResErrorAsync(this HttpContext context, string errMsg = "") => context.Response.WriteAsJsonAsync(Res.Fail(errMsg));
}
